package de.game.actor.tower.projectile;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;

import de.core.utils.ImageUtils;

public class TestBullet extends AbstractProjectile {

    public TestBullet(int aRotation, int aX, int aY) {
        super(createImage(), aRotation, 500, 2.0, aX, aY);
    }

    private static BufferedImage createImage() {
        BufferedImage image = ImageUtils.createCompatibleImage(16, 16);
        Graphics graphics = image.getGraphics();
        graphics.setColor(new Color(255, 255, 0));
        graphics.fillRect(0, 0, 16, 16);
        graphics.setColor(new Color(0, 255, 255));
        graphics.fillRect(0, 0, 16, 8);
        graphics.dispose();
        return image;
    }

}
